﻿Imports Sy.Data
Imports Sy.UI.Common
Public Class TaskList
    Inherits SqlObject(Of TaskList)

    '"create table [tasklist]([id] INTEGER PRIMARY KEY,
    '[asin] TEXT,[dpurl] TEXT,[nodebrowser] TEXT,[nodename] TEXT,[review] TEXT,[stars] TEXT,[price] TEXT,[shipfee] TEXT,[totalprice] TEXT,
    '[currency] TEXT,[bsr] TEXT,[brand] TEXT,[isreg] TEXT,[ischina] TEXT,[totalmark] TEXT,[status] TEXT,[c_time] TEXT,[page] TEXT,[caurl] TEXT,[keyword] TEXT);"
    <UIAdapter(84, Sort:=0)>
    Public Property Asin As String
    <UIAdapter("URL", 0, Sort:=1)>
    Public Property Dpurl As String
    <UIAdapter("产品标题", 380, Sort:=2, TextAlign:=HorizontalAlignment.Left)>
    Public Property Title As String
    <UIAdapter("类目节点", 70, Sort:=3, TextAlign:=HorizontalAlignment.Left)>
    Public Property Nodebrowser As String
    <UIAdapter("所属类目", 84, Sort:=4, TextAlign:=HorizontalAlignment.Left)>
    Public Property Nodename As String
    <UIAdapter("评论数", 84, Sort:=5)>
    Public Property Review As Decimal
    <UIAdapter("星级", 50, Sort:=6)>
    Public Property Stars As Decimal
    Public Property Price As Decimal
    Public Property Shipfee As Decimal
    Public Property Totalprice As Decimal
    Public Property Currency As String
    <UIAdapter(50, Sort:=11)>
    Public Property BSR As Decimal
    <UIAdapter("品牌名", 50, Sort:=7, TextAlign:=HorizontalAlignment.Left)>
    Public Property Brand As String
    'Public ReadOnly Property UIIsReg As String
    '    Get
    '        Return IsReg.GetDescription()
    '    End Get
    'End Property
    <UIAdapter("是否注册", 60, Sort:=8)>
    Public Property IsReg As String
    'Public Enum State
    '    <Description("未知"), Description(NameOf(IsChina), "未知")>
    '    Unknow
    '    <Description("已注册"), Description(NameOf(IsChina), "是")>
    '    Yes
    '    <Description("未注册"), Description(NameOf(IsChina), "否")>
    '    No
    'End Enum
    'Public ReadOnly Property UIIsChina As String
    '    Get
    '        Return IsReg.GetDescriptionByKey(NameOf(IsChina))
    '    End Get
    'End Property
    <UIAdapter("是否自发货", 84, Sort:=9)>
    Public Property IsChina As String
    Public Property Totalmark As Decimal
    <UIAdapter("僵尸产品", 84, Sort:=10)>
    Public Property Status As String
    Public Property Page As String
    <UIAdapter("上架时间", 84, Sort:=11, TextAlign:=HorizontalAlignment.Left)>
    Public Property C_Time As String
    Public Property Caurl As String
    <UIAdapter("国家", 84, Sort:=12, TextAlign:=HorizontalAlignment.Left)>
    Public Property Country As String
    Public Property Taskname As String
End Class
